
/*
 * @Description: 
 * @Author: Ronda-huangcuiwen
 * @Date: 2022-05-15 00:22:10
 * @LastEditors: wml
 * @LastEditTime: 2022-05-16 23:31:41
 */

import { get } from "@/http/axios.js"

  // 分页查询产品分类
  // pageQueryProductCategory方法的声明
export function pageQueryProductCategory(data){
    return get("/productCategory/pageQuery" , data)
}
//地址
export function pageQueryAddress(data){
    //data = {page:1,pageSize:6}
    return get('/address/pageQuery',data)
}

//查询订单详情
export function pageQueryOrder(data){
   return get('/order/pageQuery',data)
}

//获取当前登录账户信息
export function infoUser(token){
     return get('/user/info',token)
 }


// 进行充值的操作
export function accountRecharge(data){
  return get('/account/recharge',data);
}


export function findByIdOrder(data){
  return get('/order/findById',data)
}


/**查询轮播图
 * @description: Home
 * @return {*}
 *
 */

// 轮播图数据
export function queryCarousel() {
    return get('/carousel/query', { status: '正常' })
  }

// 分页查询产品
export function pageQueryProduct(data) {
    return get('/product/pageQuery', data)
  }

